package programa;
import gui.MainGui;
import controladores.ControladorMain;
import modelo.*;

public class Main {
	

	public static void main(String[] args) {
		new ControladorMain(new MainGui());
		Main main = new Main();	
		main.cargarDatos();
	}
	
	public void cargarDatos(){
		
		Sistema sis = Sistema.getIns();
		
		Materia m = new Materia ("1","Fisica I");
		sis.guardarMateria(m);
		m = new Materia ("2","Fisica II");
		sis.guardarMateria(m);
		m = new Materia ("3","Programacion I");
		sis.guardarMateria(m);
		m = new Materia ("4","Programacion II");
		sis.guardarMateria(m);
		
		Alumno a = new Alumno(1, "Juan Gonzalez", "Regular");
		sis.guardarAlumno(a);
		a = new Alumno(2, "Ana Martinez", "Regular");
		sis.guardarAlumno(a);
		a = new Alumno(3, "Carlos Lopez", "Regular");
		sis.guardarAlumno(a);
		a = new Alumno(4, "Julia Gonzalez", "Regular");
		sis.guardarAlumno(a);
		a = new Alumno(5, "Alumno 5", "Regular");
		sis.guardarAlumno(a);
		a = new Alumno(6, "Alumno 6", "Regular");
		sis.guardarAlumno(a);
		a = new Alumno(7, "Alumno 7", "Regular");
		sis.guardarAlumno(a);
		a = new Alumno(8, "Alumno 8", "Regular");
		sis.guardarAlumno(a);
		a = new Alumno(9, "Alumno 9", "Regular");
		sis.guardarAlumno(a);
		a = new Alumno(10, "Alumno 10", "Regular");
		sis.guardarAlumno(a);
		
		Profesor p = new Profesor(1, "Martin Ramirez");
		Direccion d = new Direccion("Cabildo", 450, "1020", "CABA", 3, "D");
		p.setDireccion(d);
		sis.guardarProfesor(p);
		p = new Profesor(2, "Jose Gonzalez ");
		d = new Direccion("Lima", 250, "1000", "CABA", 1, "A");
		p.setDireccion(d);
		sis.guardarProfesor(p);
		
	}

}
